package com.itheima.admin.feign;

import com.itheima.admin.pojo.AdChannel;
import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @version 1.0
 * @description 说明
 * @package com.itheima.admin.feign
 */
@FeignClient(name = "leadnews-admin",contextId = "adChannelFeign")
public interface AdChannelFeign {

    /**
     * 查询所有的频道
     * @return
     */
    @GetMapping("/api/channel/all")
    ResultVo<List<AdChannel>> listAll();
}
